package cn.autoOffice.service.impl;

import cn.autoOffice.bean.pojo.Employee;
import cn.autoOffice.mapper.LoginMapper;
import cn.autoOffice.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    public LoginMapper loginMapper;

    @Override
    public Employee login(Integer empCode, char[] empPassword) {
        return loginMapper.login(empCode,new String(empPassword));
    }
}
